package com.ad.pet.models.remote;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by SEELE on 2018/3/28.
 */

public class KeyWord implements Serializable {
    String title;
    String item_url;
    int is_hot;
    String name;
    String keyword;
    String category_id;

    String start_price;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getCategory_id() {
        return category_id;
    }

    public void setCategory_id(String category_id) {
        this.category_id = category_id;
    }

    public String getStart_price() {
        return start_price;
    }

    public void setStart_price(String start_price) {
        this.start_price = start_price;
    }

    public String getEnd_price() {
        return end_price;
    }

    public void setEnd_price(String end_price) {
        this.end_price = end_price;
    }

    public int getIs_native() {
        return is_native;
    }

    public void setIs_native(int is_native) {
        this.is_native = is_native;
    }

    String end_price;

    @SerializedName("native")
    int is_native;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    public int getIs_hot() {
        return is_hot;
    }

    public void setIs_hot(int is_hot) {
        this.is_hot = is_hot;
    }

    public String getItem_url() {
        return item_url;
    }

    public void setItem_url(String item_url) {
        this.item_url = item_url;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof KeyWord)) return false;

        KeyWord keyWord = (KeyWord) o;

        if (is_native != keyWord.is_native) return false;
        if (getTitle() != null ? !getTitle().equals(keyWord.getTitle()) : keyWord.getTitle() != null)
            return false;
        return getItem_url() != null ? getItem_url().equals(keyWord.getItem_url()) : keyWord.getItem_url() == null;
    }

    @Override
    public int hashCode() {
        int result = getTitle() != null ? getTitle().hashCode() : 0;
        result = 31 * result + (getItem_url() != null ? getItem_url().hashCode() : 0);
        result = 31 * result + is_native;
        return result;
    }
}
